body {
  font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #222;
}
header {
  background: #4caf50;
  color: #fff;
  padding: 20px 0 10px 0;
  min-height: 80px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
header h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 2.2em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
nav {
  margin-bottom: 0;
  flex-shrink: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0 0 15px;
  font-weight: bold;
  transition: color 0.2s;
}
nav a:hover {
  color: #e0ffe0;
}
main {
  max-width: 1300px;
  min-width: 1300px;
  width: 1300px;
  margin: 32px auto 0 auto;
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
  padding: 30px 40px;
  position: relative;
}
section {
  margin-bottom: 30px;
}
footer {
  text-align: center;
  padding: 15px 0;
  background: #333;
  color: #fff;
  position: static;
  width: 100%;
  bottom: 0;
  left: 0;
  margin-top: auto;
}
ul {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}

.feature-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 48px 0 0 0;
  flex-wrap: wrap;
}

.feature-card {
  background: #eafbe7;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(60, 120, 60, 0.08);
  padding: 32px 28px 28px 28px;
  width: 260px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.feature-card h3 {
  color: #2e7d32;
  font-size: 1.25em;
  margin-bottom: 10px;
  font-weight: bold;
}

.feature-card p {
  color: #205020;
  margin-bottom: 18px;
  text-align: center;
}

.feature-card .btn {
  display: inline-block;
  background: linear-gradient(135deg, #a8e063 60%, #4caf50 100%);
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(60, 120, 60, 0.08);
  padding: 10px 24px;
  margin: 8px 8px 0 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card .btn:hover {
  background: linear-gradient(135deg, #4caf50 60%, #388e3c 100%);
  box-shadow: 0 4px 16px rgba(60, 120, 60, 0.16);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  text-decoration: none;
}

/* 登录页面样式 */
.login-container {
  width: 380px;
  max-width: 90vw;
  margin: 40px auto;
  background: #f8fff4;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(60,120,60,0.10);
  padding: 40px 36px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Select 标签美化样式 */
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234caf50' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group select:hover {
  border-color: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.form-group select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  background-color: #f8fff8;
}

.form-group select option {
  padding: 8px 12px;
  background: #fff;
  color: #333;
  font-size: 16px;
}

.form-group select option:hover {
  background: #e8f5e9;
}

.form-group select option:checked {
  background: #4caf50;
  color: #fff;
}

/* 针对不同浏览器的兼容性 */
.form-group select::-ms-expand {
  display: none;
}

/* 禁用状态的样式 */
.form-group select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

.btn-primary {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  background: #4caf50;
  border: none;
  color: #ffffff;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.btn-primary::after {
  content: '';
  background: #66bb6a;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.btn-primary:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.btn-primary:hover {
  background: #45a049;
}

.form-group p {
  text-align: center;
  margin: 0;
}

.form-group a {
  color: #4caf50;
  text-decoration: none;
}

.form-group a:hover {
  text-decoration: underline;
}

/* 查询页面样式 */
.search-form {
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}



.form-actions .btn {
  flex: 1;
  max-width: 140px;
  min-width: 120px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.form-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  position: relative;
  background: #6c757d;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.btn-secondary::after {
  content: '';
  background: #868e96;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.btn-secondary:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-success {
  position: relative;
  background: #28a745;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.btn-success::after {
  content: '';
  background: #4caf50;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.btn-success:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.btn-success:hover {
  background: #218838;
}

#searchResults {
  margin-top: 30px;
}

.result-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.result-item h4 {
  color: #4caf50;
  margin-bottom: 10px;
}

.result-item p {
  margin: 5px 0;
  color: #666;
}

.result-item strong {
  color: #333;
}

/* 数据录入页面样式 */
.data-form {
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.data-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.data-form .form-group.full-width {
  grid-column: 1 / -1;
}

.data-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.data-form textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.data-form input[type="file"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.success-alert {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}

.success-alert h3 {
  margin: 0 0 10px 0;
  color: #155724;
}

.success-alert p {
  margin: 0 0 15px 0;
}

.success-alert .btn {
  position: relative;
  background: #28a745;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 5px;
  display: inline-block;
}

.success-alert .btn::after {
  content: '';
  background: #4caf50;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.success-alert .btn:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.success-alert .btn:hover {
  background: #218838;
}

.success-alert .btn-primary {
  width: 180px;
  max-width: 180px;
  min-width: 80px;
  display: block;
  margin: 24px auto 0 auto;
}

/* 系统管理页面样式 */
.admin-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.admin-section {
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.admin-section h3 {
  color: #4caf50;
  margin-bottom: 15px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 5px;
}

.admin-form {
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.field-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr auto;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.field-name, .field-type, .field-constraint {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  position: relative;
  background: #dc3545;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.btn-danger::after {
  content: '';
  background: #e74c3c;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.btn-danger:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-warning {
  position: relative;
  background: #ffc107;
  border: none;
  color: #212529;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
}

.btn-warning::after {
  content: '';
  background: #ffd54f;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.btn-warning:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.btn-warning:hover {
  background: #e0a800;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  table-layout: auto;
  border-collapse: collapse;
  background: #f8fff8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  border: 1px solid #e0e0e0;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
  background: linear-gradient(90deg, #a8e063 0%, #4caf50 100%);
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #4caf50;
}

.admin-table tr:hover {
  background: #e8f5e9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #f4faef;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.stat-card h4 {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.stat-card p {
  color: #4caf50;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.log-container {
  background: #f4faef;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
  max-height: 300px;
  overflow-y: auto;
}

.log-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.log-item:last-child {
  border-bottom: none;
}

.log-time {
  color: #666;
  font-size: 12px;
}

.log-action {
  color: #4caf50;
  font-weight: bold;
}

.result-alert {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.result-alert h4 {
  margin: 0 0 10px 0;
  color: #0c5460;
}

/* 表格管理额外样式 */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .tables-grid {
    grid-template-columns: 1fr;
  }
}
.table-card {
  background: #f8fff8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px 28px 18px 28px;
  margin-bottom: 0;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.table-card h4 {
  color: #2e8b57;
  margin-bottom: 6px;
}
.table-card .table-actions {
  margin-top: 18px;
  display: flex;
  gap: 18px;
}

.table-card p {
  color: #666;
  margin: 5px 0;
}

.table-info {
  font-size: 12px;
  color: #999;
}

.table-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.table-actions .btn {
  flex: 1;
  min-width: 100px;
  max-width: 140px;
  font-weight: 600;
  margin: 0 4px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 16px;
}

.table-actions .btn-warning {
  background: linear-gradient(90deg, #a8e063 0%, #4caf50 100%);
  color: #fff;
  border: none;
}

.table-actions .btn-danger {
  background: linear-gradient(90deg, #f44336 0%, #e57373 100%);
  color: #fff;
  border: none;
}

.table-actions .btn-warning:hover {
  background: linear-gradient(90deg, #4caf50 0%, #a8e063 100%);
}

.table-actions .btn-danger:hover {
  background: linear-gradient(90deg, #e57373 0%, #f44336 100%);
}

/* 用户管理额外样式 */
.role-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.role-admin {
  background: #dc3545;
  color: #fff;
}

.role-registered {
  background: #28a745;
  color: #fff;
}

.role-guest {
  background: #6c757d;
  color: #fff;
}

/* 建议页面样式 */
.suggestion-intro {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  color: #2e7d32;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 18px;
}

.suggestion-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.suggestion-section h3 {
  color: #4caf50;
  margin-bottom: 15px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 5px;
}

.suggestion-form {
  background: linear-gradient(135deg, #f1fbe7 60%, #e8f5e9 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(76,175,80,0.06);
}

.filter-controls {
  background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-controls .form-row {
  margin-bottom: 15px;
}

.filter-controls .form-group {
  margin-bottom: 10px;
}

.filter-controls .btn {
  margin-right: 10px;
  min-width: 100px;
}

.suggestion-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.suggestion-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.suggestion-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.suggestion-type {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.type-function {
  background: #007bff;
  color: #fff;
}

.type-data {
  background: #28a745;
  color: #fff;
}

.type-ui {
  background: #ffc107;
  color: #212529;
}

.type-performance {
  background: #17a2b8;
  color: #fff;
}

.type-other {
  background: #6c757d;
  color: #fff;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.priority-high {
  background: #dc3545;
  color: #fff;
}

.priority-medium {
  background: #ffc107;
  color: #212529;
}

.priority-low {
  background: #6c757d;
  color: #fff;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-pending {
  background: #ffc107;
  color: #212529;
}

.status-reviewing {
  background: #17a2b8;
  color: #fff;
}

.status-approved {
  background: #28a745;
  color: #fff;
}

.status-rejected {
  background: #dc3545;
  color: #fff;
}

.suggestion-content {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.suggestion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.suggestion-actions {
  display: flex;
  gap: 10px;
}

.suggestion-actions button {
  position: relative;
  background: #4caf50;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  text-align: center;
  transition-duration: 0.6s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.suggestion-actions button::after {
  content: '';
  background: #66bb6a;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s;
}

.suggestion-actions button:active::after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

.suggestion-actions button:hover {
  background: #45a049;
}

/* 用户菜单样式 */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 40px;
  cursor: pointer;
  float: none;
  z-index: 2;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  vertical-align: middle;
  border: 2px solid #fff;
  background: #e0ffe0;
}
.username {
  color: #fff;
  font-weight: bold;
  margin: 0 8px;
  vertical-align: middle;
}
.dropdown-arrow {
  color: #fff;
  font-size: 14px;
  vertical-align: middle;
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  z-index: 100;
  padding: 10px 0;
  border: 1px solid #e0e0e0;
}
.user-menu.open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 22px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: #e8f5e9;
  color: #388e3c;
}
.menu-icon {
  font-size: 18px;
  margin-right: 10px;
  color: #4caf50;
}
@media (max-width: 600px) {
  .user-menu { margin-right: 10px; }
  .dropdown-menu { min-width: 110px; }
  .username { display: none; }
}

html, body {
  height: 100%;
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
  position: relative;
}
.bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
  bottom: 0;
  left: -50%;
  opacity: .5;
  position: fixed;
  right: -50%;
  top: 0;
  z-index: -1;
}
.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}
.bg3 {
  animation-duration: 5s;
}
@keyframes slide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

.back-home-btn {
  display: inline-block;
  border-radius: 4px;
  background-color: #4caf50;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 16px;
  padding: 8px 22px 8px 18px;
  min-width: 90px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px 0 20px 32px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
}
.back-home-btn:hover {
  background-color: #388e3c;
  color: #fff;
}
.back-home-btn span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
  padding-left: 0;
}
.back-home-btn span:before {
  content: '\2190'; /* 左箭头 */
  position: absolute;
  opacity: 0;
  left: -20px;
  top: 0;
  transition: 0.5s;
}
.back-home-btn:hover span {
  padding-left: 25px;
}
.back-home-btn:hover span:before {
  opacity: 1;
  left: 0;
}

.intro-card {
  background: #f4faef;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.07);
  padding: 28px 32px 18px 32px;
  margin-bottom: 32px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.intro-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2em;
  font-weight: bold;
  color: #222;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(76,175,80,0.18), 0 1px 0 #fff;
  font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}
.intro-card p {
  margin: 0;
  color: #444;
  font-size: 1.08em;
  letter-spacing: 0.5px;
}

@font-face {
  font-family: 'ChongQingBangBangTi';
  src: url('云峰字库重庆山城棒棒体.ttf') format('truetype');
  font-display: swap;
}

.intro-card h2 {
  font-family: 'ChongQingBangBangTi', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 2.8em;
  color: #222;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(76,175,80,0.18), 0 1px 0 #fff;
}

.admin-table td:last-child, .admin-table th:last-child {
  width: 130px;
  text-align: center;
  padding: 8px 0;
}

.user-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.user-actions .btn-primary,
.user-actions .btn-danger {
  flex: 1 1 0;
  min-width: 60px;
  max-width: 80px;
  padding: 6px 0;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

.user-actions .btn-primary {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
  border: none;
  transition: background 0.3s;
}
.user-actions .btn-primary:hover {
  background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%);
}

.user-actions .btn-danger {
  background: linear-gradient(90deg, #f44336 0%, #e57373 100%);
  color: #fff;
  border: none;
  transition: background 0.3s;
}
.user-actions .btn-danger:hover {
  background: linear-gradient(90deg, #e57373 0%, #f44336 100%);
}

.admin-table td, .admin-table th {
  padding: 10px 8px;
  vertical-align: middle;
}

.admin-table tr {
  height: 48px;
} 

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: #f8fff8;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 32px 40px 24px 40px;
  position: relative;
  animation: popIn 0.18s;
}
@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  right: 18px; top: 12px;
  font-size: 2em;
  color: #888;
  cursor: pointer;
} 

/* 绿色主题美化表格样式（带方格线） */
.custom-table-data {
  width: 100%;
  table-layout: auto;
  min-width: 0;
  max-width: 100%;
  border-collapse: collapse; /* 合并边框，显示网格线 */
  background: #f6fff6;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60, 120, 60, 0.08);
  margin: 0 auto 18px auto;
  overflow: hidden;
  font-size: 1em;
}

.custom-table-data th,
.custom-table-data td {
  border: 1px solid #b2e5b2; /* 绿色细边框 */
  text-align: center;
}

.custom-table-data th {
  background: #d2f5d2;
  color: #206020;
  font-weight: bold;
  padding: 12px 10px;
  text-align: left;
}

.custom-table-data td {
  padding: 10px 8px;
  color: #205020;
  vertical-align: middle;
}

.custom-table-data tr:hover {
  background: #e8ffe8;
  transition: background 0.2s;
} 

.custom-table-data .rowCheckbox {
  width: 22px;
  height: 22px;
  accent-color: #4caf50;
  cursor: pointer;
} 

#fieldSettingModal .btn {
  width: 100px;
  height: 40px;
  font-size: 1.1em;
  border-radius: 8px;
  margin-left: 8px;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

#fieldSettingModal .btn-primary {
  background: #4caf50;
  color: #fff;
  border: none;
}

#fieldSettingModal .btn-secondary {
  background: #888;
  color: #fff;
  border: none;
}

#fieldSettingModal .btn:active {
  opacity: 0.85;
} 

#tableSearchInput.form-control {
  border: 1.5px solid #4caf50;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #f6fff6;
  color: #205020;
  box-sizing: border-box;
}

#tableSearchInput.form-control:focus {
  border-color: #388e3c;
  box-shadow: 0 0 0 2px #b2e5b2;
  background: #fff;
} 

/* 针对index.html页面main区域加宽 */
body#index-page main {
  max-width: 900px;
  min-width: 900px;
  width: 900px;
} 

.custom-table-data th {
  text-align: center !important;
  vertical-align: middle;
} 

.highlight {
  background: #d4f8e8;
  color: #218a5a;
  font-weight: bold;
  border-radius: 2px;
  padding: 0 2px;
} 

.table-operation-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
#tableOperationBar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 8px 0;
  justify-content: flex-start;
}
#tableOperationBar button {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 36px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} 

/* 用户编辑弹窗按钮等宽且平齐 */
#editUserModal .modal-content form > div[style*="text-align:right"] {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
}
#editUserModal .modal-content form > div[style*="text-align:right"] .btn {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 200px;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  box-sizing: border-box;
} 

/* 优化建议详细描述文本框样式 */
.suggestion-form textarea,
textarea#suggestionContent {
  width: 100%;
  min-height: 100px;
  max-height: 300px;
  padding: 10px;
  border: 1.5px solid #a3d3a1;
  border-radius: 6px;
  font-size: 16px;
  resize: vertical;
  background: #f8fff6;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.suggestion-form textarea:focus,
textarea#suggestionContent:focus {
  border-color: #4caf50;
  outline: none;
  background: #f3fff0;
} 

/* 绿色主题按钮样式 */
.btn-green, .btn-green:visited {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
}
.btn-green:hover, .btn-green:focus {
  background: #388e3c;
  box-shadow: 0 4px 16px rgba(76,175,80,0.15);
}

/* 针对筛选按钮 */
#filterBtn, #clearFilterBtn {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
}
#filterBtn:hover, #filterBtn:focus,
#clearFilterBtn:hover, #clearFilterBtn:focus {
  background: #388e3c;
  box-shadow: 0 4px 16px rgba(76,175,80,0.15);
} 

/* 绿色主题处理建议下拉框样式 */
.status-select {
  background: #f8fff6;
  border: 1.5px solid #4caf50;
  border-radius: 6px;
  color: #388e3c;
  font-size: 16px;
  padding: 6px 18px 6px 10px;
  margin-left: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(76,175,80,0.06);
  cursor: pointer;
}
.status-select:focus {
  border-color: #388e3c;
  box-shadow: 0 2px 8px rgba(76,175,80,0.12);
  background: #f3fff0;
}
.status-select option {
  color: #222;
  background: #fff;
} 

.form-group input, .data-form textarea {
  background: #f8fff8;
  border: 1.5px solid #b2dfdb;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 #e0f2f1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .data-form textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 8px 0 #a5d6a7;
  background: #f1fbe7;
}
.form-group input:hover, .data-form textarea:hover {
  border-color: #4caf50;
} 